/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package filer;

import java.io.*;
import java.util.Properties;

/**
 *
 * @author maggie
 */
public class IniFile extends UrlShortcut{

	private Properties iniDoc = new Properties();

	public IniFile(String filePath) throws FileNotFoundException, IOException {
		InputStream is;
		File f = new File(filePath);
		is = new FileInputStream(f);
		this.iniDoc.load(is);
		this.url = this.iniDoc.getProperty("URL");
		// TODO HTML parse
		this.title = UrlShortcut.getNameWithoutExtension(new File(filePath).getName());
		this.lastModified = f.lastModified();
	}
}
